package com.ysd.lis.controller.bac;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.bac.BacTestWorkFlowNode;
import com.ysd.lis.service.bac.BacTestWorkFlowNodeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 微生物检验应用流程方案节点 前端控制器
 * </p>
 *
 * @author cfz
 * @since 2024-04-11
 */
@RestController
@RequestMapping("/api/bac/bac-test-work-flow-node")
public class BacTestWorkFlowNodeController extends BaseController {
    @Autowired
    BacTestWorkFlowNodeService bacTestWorkFlowNodeService;

    @ApiOperation("查询")
    @GetMapping("/findBacTestWorkFlowNodeList")
    public Result findBacTestWorkFlowNodeList(BacTestWorkFlowNode bacTestWorkFlowNode) {
        return bacTestWorkFlowNodeService.findBacTestWorkFlowNodeList(bacTestWorkFlowNode);
    }

    @ApiOperation("增加")
    @PostMapping("/addBacTestWorkFlowNode")
    public Result addBacTestWorkFlowNode(@RequestBody BacTestWorkFlowNode bacTestWorkFlowNode) {
        return bacTestWorkFlowNodeService.addBacTestWorkFlowNode(bacTestWorkFlowNode);
    }

    @ApiOperation("删除")
    @PostMapping("/deleteBacTestWorkFlowNode")
    public Result deleteBacTestWorkFlowNode(@RequestBody BacTestWorkFlowNode bacTestWorkFlowNode) {
        return bacTestWorkFlowNodeService.deleteBacTestWorkFlowNode(bacTestWorkFlowNode);
    }

    @ApiOperation("修改")
    @PostMapping("/updateBacTestWorkFlowNode")
    public Result updateBacTestWorkFlowNode(@RequestBody BacTestWorkFlowNode bacTestWorkFlowNode) {
        return bacTestWorkFlowNodeService.updateBacTestWorkFlowNode(bacTestWorkFlowNode);
    }
}
